package tests;


import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

import business.AreaCientifica;
import business.Disciplina;

public class AreaCientificaTest {

	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
	}

	@AfterClass
	public static void tearDownAfterClass() throws Exception {
	}

	@Before
	public void setUp() throws Exception {
	}

	@After
	public void tearDown() throws Exception {
	}
	
	@Test (expected = AssertionError.class)
	public void test1(){
		AreaCientifica a = new AreaCientifica(null);
	}
	
	@Test
	public void test2(){
		AreaCientifica b = new AreaCientifica("Test");
	}
	
	@Test (expected = AssertionError.class)
	public void test3(){
		AreaCientifica c = new AreaCientifica();
		c.setNome(null);
	}
	
	@Test
	public void test4(){
		AreaCientifica d = new AreaCientifica();
		d.setNome("Test");
	}
	
	@Test
	public void test5(){
		AreaCientifica a = new AreaCientifica();
		a.getNome();
	}
	
	@Test
	public void objectTester(){
		AreaCientifica.objectos();
	}
	
	@Test
	public void resetTester(){
		AreaCientifica.reset();
	}
	
	@Test
	public void disciplinasTester(){
		Disciplina d = new Disciplina();
		AreaCientifica ac = new AreaCientifica();
		
		d.setAreaCientifica(ac);
		ac.disciplinas();
	}
	
	@Test
	public void toStringTester(){
		AreaCientifica ac = new AreaCientifica();
		ac.toString();
	}

}
